* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #3f151b;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
  transform-style: preserve-3d;
  perspective: 500px;
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.banner .blocks {
  position: relative;
  display: block;
  width: 5vw;
  height: 5vh;
  box-sizing: border-box;
  animation: animate 2s ease-in-out forwards;
  animation-delay: 1s;
}

@keyframes animate {
  0% {
    background: url(/assets/img/bg.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }

  90% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }

  100% {
    background: url(/assets/img/bg.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
  }
}

section.active .banner .blocks {
  animation: animate2 2s ease-in-out forwards;
  background: url(/assets/img/bg.jpg);
  background-position: center;
  background-attachment: fixed;
  background-size: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes animate2 {
  0% {
    background: url(/assets/img/bg.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }

  100% {
    background: url(/assets/img/bg.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}
